package org.bite.lesson01;

public class Demo01_Thread {
    public static void main(String[] args) {
        //初始化自定义线程
        MyThread01 myThread01 = new MyThread01();
        //运行这个线程
        myThread01.start();
    }
}

//自定义一个线程类，继承JDK中的Thread类
class MyThread01 extends Thread{
    //定义线程的任务
    @Override
    public void run(){
        System.out.println("Welcome to my thread...");
    }
}
